<h3>Usuarios</h3>

<p>Aqui podra editar los roles del usuario <strong><?php echo $this->user->username ?></strong>.</p>

<form action="/user/role/userId/<?php echo $this->user->user_id?>" method="post" >
    <div style="width: 700px">
        <div style="width: 700px; float: left;">
            <table align="center"  class="listclass" width="350" border="1" cellpadding="0" cellspacing="0">
                <tbody>
                    <? $i=0; foreach ($this->roles as $role) : ?>
                          <tr>
                            <td valign="top"><?php echo $role->name; ?></td>
                            <td align="center">
                                <input type="checkbox" name="userRoles[]" value="<?php echo $role->role_id ?>" <?php echo $this->user->haveRole($role->role_id)?'checked="checked"':'' ?> />
                            </td>
                          </tr>
                    <? $i++; endforeach; ?>
                </tbody>
            </table>
        </div>
        <div style="width: 450px; float: left;" align="center">
            <p>
                <input type="submit" Value="Aceptar">
                &nbsp;
                <input type="button" value="Cancelar" onclick="document.location='/user/list'">
            </p>
        </div>
    </div>
</form>

 